package service;

import model.Company;

import java.util.List;

/**
 * @Author: 燕子豪
 * @Date: 2022/12/17 20:30
 */
public interface CompanyService {
    Company login(String cname, String cpassword);

    Boolean update(Company company);

    Boolean insert(Company company);

    List<Company> selectAll(int pageIndex, int pageSize);

    List<Company> selectByName(String cname, int pageIndex, int pageSize);

    int countAll();

    int countByName(String cname);

    Company selectById(long cid);
}
